<?php
class visiteursController extends appController {

    var $name = 'Clients';
    var $helpers = array('Html', 'Javascript');
    var $components = array('Auth');


    function beforeFilter(){
         parent::beforeFilter();
        $this->Auth->allow('login', 'nouveau');
        $this->Auth->loginAction = array('controller' => 'clients', 'action' => 'login');
    $this->Auth->loginRedirect = array('controller' => 'commands', 'action' => 'afficher');


    }
    
    function ajouterCommentaire(){
        
    }
}
?>
